
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<title>用户列表</title>
		<style type="text/css">
			table{			
				width:100%;
				border-collapse:collapse;
			}
			table tr{
				border:1px solid #B5CFD9;
				text-align: center;
			}
			table td{
				border:1px solid #B5CFD9;
				text-align: center;
			}
			h1{
				text-align:center;
			}
			input{
				border:0px;
				background-color: #00AAEE;
				border-radius:3px;
				padding:5px 7px;
				margin:5px;
				cursor: pointer;
			}
		</style>
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#anniu input").click(function(){
					
				})
			})
		</script>
</head>
<body>
<%@ include file="/HT/login_control.jsp" %>
	<h1>用户列表</h1>
	<table border="1px"> 
		<tr>
			<td>用户名</td>		
			<td>邮箱</td>
			<td>手机号</td>
			<td>状态</td>
			<td>操作</td>
			
		</tr>
		<c:forEach items="${list }" var="user">
			<tr>
				<td>${user.u_username }</td>
				<td>${user.u_email }</td>
				<td>${user.u_phone }</td>
				<c:if test="${user.u_type==0 }">
					<td>可用</td>
				</c:if>
				<c:if test="${user.u_type==1 }">
					<td>禁用</td>
				</c:if>
				<td id="anniu">
					<spp><a href="/Vancl/jyuser.shtml?id=${user.u_id }" >可用</a></spp>
					
					<spp><a href="/Vancl/kyuser.shtml?id=${user.u_id }" >禁用</a></spp>
				</td>
				
			</tr>
		</c:forEach>
	</table>
</body>
</html>